<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-22
 * Time: 20:14
 */

namespace app\api\validate\withdrawal;


use app\api\validate\BaseValidate;

class CheckWithdrawal extends BaseValidate
{
    protected $rule = [
        'money' => 'require',
        'type' => 'require|in:0,1,2,3,4',
        'name' => 'require|max:20',
        'bank_name' => 'require|max:30',
        'bank_no' => 'require|max:30'
    ];

    protected $message = [
        'money' => '请输入正确的提现金额',
        'type' => '请选择正确的类型',
        'name' => '请输入正确的姓名且长度不大于20',
        'bank_name' => '请输入正确的银行且长度不大于30',
        'bank_no' => '请输入正确的银行卡号且长度不大于30'
    ];
}